package openai

import (
	"encoding/json"
)

func parseResponseData(str string) (map[string]interface{}, error) {
	var responseData map[string]interface{}
	err := json.Unmarshal([]byte(str), &responseData)
	if err != nil {
		return nil, err
	}
	return responseData, nil
}
